using System;
using System.Xml;

namespace umlungu.engineX.webX.thoughts.Admin.service {
	/// <summary>
	/// umlungu engineX web framework, handlerX class.
	/// </summary>
	public class User : SoapX
	{
		/// <summary>Constructor</summary>
		public User() : base("service", "User") {
		}
		/// <summary>
		/// Method _Process:: calls delegate(s)
		/// </summary>
		protected override void _Process(XmlDocument xmldom, profileX profile, contentX content) {
			_Debug("User._Process(", Process, ") profile:", profile.Xml.InnerXml);
			_Debug("User._Process(", Process, ") content:", content.Xml.InnerXml);
			switch (Process) {
				case "Get":			ProcessResult(new ProcessServiceResult(Handlers.processUserGet));			break;
				case "GetContact":	ProcessResult(new ProcessServiceResult(Handlers.processUserGet));			break;
				case "GetLogin":	ProcessResult(new ProcessServiceResult(Handlers.processUserGet));			break;
				case "Edit":		ProcessResult(new ProcessServiceResult(Handlers.processUserProfileEdit));	break;
				case "GetBlog":		ProcessResult(new ProcessServiceResult(Handlers.processUserGetBlog));		break;
				case "AddBlog":		ProcessResult(new ProcessServiceResult(Handlers.processUserAddBlog));		break;
				case "ChangeLogin":	ProcessResult(new ProcessServiceResult(Handlers.processUserChangeLogin));	break;
			}
			_Debug("User._Process(", Process, ") profile:", profile.Xmldoc.OuterXml);
		}
	}
}
		
